class LayuiTableData():
    def __init__(self, code, msg, count, data):
        self.code = code
        self.msg = msg
        self.count = count
        self.data = data

    def getJsonData(self):
        result = {
            "code": self.code,
            "msg": self.msg,
            "count": self.count,
            "data": self.data
        }
        return result


class ResponseJson():
    def __init__(self, success, msg, data):
        self.success = success
        self.msg = msg
        self.data = data

    def getJsonData(self):
        result = {
            "success": self.success,
            "msg": self.msg,
            "data": self.data
        }
        return result
